<div class="widget-box">
    <div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
        <h5>Sửa môn</h5>
    </div>
    <div class="widget-content nopadding">
        <?php
        echo $thongbao;
        ?>
        <form action="" method="post" class="form-horizontal">
            <div class="control-group">
                <label class="control-label">Tên thời gian :</label>
                <div class="controls">
                    <input type="text" name="txtTenThoiGian" placeholder="Tên thời gian" value="<?=$data['ten_thoi_gian']?>">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">Thuộc thời gian: </label>
                <div class="controls">
                    <select name="thoi_gian_me">
                        <option value="0">Không thuộc thời gian nào</option>
                        <?php
                        while($data1 = mysql_fetch_array($thoigianme))
                        {
                            if($data1['id_thoi_gian']==$data['thoi_gian_me']){
                                echo "<option selected='true' value='{$data1['id_thoi_gian']}'>{$data1['ten_thoi_gian']}</option>";
                            }else{
                                echo "<option value='{$data1['id_thoi_gian']}'>{$data1['ten_thoi_gian']}</option>";
                            }
                        }
                        ?>
                    </select>
                </div>
            </div>
            <div class="form-actions">
                <button type="submit" class="btn btn-success">Sửa</button>
                <a href="javascript:history.back()" class="btn btn-danger">Huỷ</a>
            </div>
        </form>
    </div>
</div>